home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 June: Reference Library / Dev.CD Jun 96 RL / Dev.CD Jun 96 RL.toast / Technical Documentation / develop / develop Issue 23 / develop Issue 23 code / ProjectDrag 1.1b8 / Sources / ProjectDrag Sources / Update.r < prev    next >
Encoding:
Text File  |  1995-07-11  |  5.5 KB  |  199 lines  |  [TEXT/MPS ]

  1. /* Update.r: Update applet resources for ProjectDrag.
  2.  *
  3.  * A set of applets for drag and drop source control by Tim Maroney.
  4.  * See develop, issue 23 for details.
  5.  *
  6.  * Built on DropShell by Leonard Rosenthol, Stephan Somogyi, and Marshall Clow,
  7.  * and using the MoreFiles utilities by Jim Luther.
  8.  *
  9.  * This software is free, but don't modify and redistribute it without
  10.  * changing the status window to indicate your name and your changes!
  11.  */
  12.  
  13. #define SystemSevenOrLater 1
  14. #include "Types.r"
  15. #include "SysTypes.r"
  16. #include "BalloonTypes.r"
  17. #include "AEUserTermTypes.r"
  18.  
  19. include "Update.rsrc";
  20.  
  21. /* First thing we need is the Finder Help Balloon */
  22. resource 'hfdr' (-5696) {
  23.     HelpMgrVersion, 0, 0, 0,
  24.     {
  25.         HMStringItem {
  26.             "Drag a file or folder onto this icon, and Update will update it to the latest version. "
  27.             "If the file is checked out or MRO, you will be asked whether you really want to "
  28.             "discard the changes. When updating a folder, checked-out and MRO files are ignored."
  29.         },
  30.     }
  31. };
  32.  
  33.  
  34. /* Menus & Menu Help Resources Go Here */
  35. resource 'MENU' (128, "Apple") { 128, textMenuProc, 0x7FFFFFFD, enabled, apple, 
  36.     {    /* array: 2 elements */
  37.         /* [1] */    "About Update…", noIcon, noKey, noMark, plain,
  38.         /* [2] */    "-", noIcon, noKey, noMark, plain
  39.     }
  40. };
  41.  
  42. resource 'MENU' (129, "File") { 129, textMenuProc, allEnabled, enabled, "File", 
  43.     {    /* array: 2 elements */
  44.         /* [1] */    "Update File…",    noIcon, "O", noMark, plain,
  45.         /* [2] */    "Quit",         noIcon, "Q", noMark, plain
  46.     }
  47. };
  48.  
  49. resource 'DITL' (128, purgeable) {
  50.     {    /* array DITLarray: 3 elements */
  51.         /* [1] */ {97, 198, 117, 270}, Button { enabled, "OK" }, 
  52.         /* [2] */ {8, 8, 87, 271}, StaticText { disabled,
  53.             "Update - ProjectDrag's applet for updating files and folders. By Tim Maroney. " },
  54.         /* [3] */ {0, 0, 0, 0}, HelpItem { disabled, HMScanhdlg { 1 } } 
  55.     }
  56. };
  57.  
  58. /* Here are the STR#'s that the Help text is stored in! */
  59. resource 'STR#' (128,purgeable) {    /* help items for Apple Menu */
  60.     { /* array StringArray: 3 elements */
  61.         /* [1] */     "Information about that wonderful thing which is known to humans as Update.",
  62.         /* [2] */     "Click here to dismiss this dialog.",
  63.         /* [3] */     "This text describes the product, its author, and why!"
  64.     }
  65. };
  66.  
  67. resource 'STR#' (129,purgeable) {    /* help items for File Menu */
  68.     { /* array StringArray: ? elements */
  69.         /* [1] */    "Use this menu to update a file and to exit Update.",
  70.         /* [2] */     "Use this menu to update a file and to exit Update. "
  71.                       "This menu is unavailable now.",
  72.         /* [3] */     "Use this menu to update a file and to exit Update. "
  73.                     "This menu is unavailable until you respond to the alert box or dialog box.",
  74.         /* [4] */     "This command is unavailable until you respond to the alert box or dialog box.",
  75.         /* [5] */     "Use this command to update a file.",
  76.         /* [6] */     "Use this command to update a file. "
  77.                     "Not available now for some strange reason.",
  78.         /* [7] */     "Use this command to exit Update.",
  79.         /* [8] */     "Use this command to exit Update. "
  80.                     "Not available now for some strange reason."
  81.     }
  82. };
  83.  
  84. resource 'STR#' (200, purgeable) {    /* help info for the Error Dialog */
  85.     {    /* array StringArray: 3 elements */
  86.         /* [1] */    "Click here to dismiss this dialog.",
  87.         /* [2] */    "This text describes the error that occured.",
  88.         /* [3] */    "This error ID gives more specific details of the error."
  89.     }
  90. };
  91.  
  92. resource 'STR#' (2001, purgeable) {    /* progress info */
  93.     {    /* array StringArray: 1 element */
  94.         /* [1] */    "updating “<1>”"
  95.     }
  96. };
  97.  
  98. resource 'hmnu' (129, purgeable) {    /* File */
  99.     HelpMgrVersion, 0, 0, 0,
  100.     HMSkipItem {    /* no missing items */    },
  101.     {    /* array HMenuArray: 4 elements */
  102.         HMStringResItem {    /* Menu Title */
  103.             129, 1,
  104.             129, 2,
  105.             129, 3,
  106.             129, 4
  107.         },
  108.         HMStringResItem {    /* Open File… */
  109.             129, 5,
  110.             129, 6,
  111.             0, 0,
  112.             0, 0
  113.         },
  114.         HMStringResItem {    /* Quit */
  115.             129, 7,
  116.             129, 8,
  117.             0, 0,
  118.             0, 0
  119.         },
  120.     }
  121. };
  122.  
  123. resource 'BNDL' (128, "Bundle") {
  124.     'pdup',
  125.     0,
  126.     {    /* array TypeArray: 2 elements */
  127.         /* [1] */
  128.         'FREF',
  129.         {    /* array IDArray: 2 elements */
  130.             /* [1] */ 0, 128,
  131.             /* [2] */ 1, 129,
  132.             /* [3] */ 2, 130
  133.         },
  134.         /* [2] */
  135.         'ICN#',
  136.         {    /* array IDArray: 2 elements */
  137.             /* [1] */ 0, 128,
  138.             /* [2] */ 1, 0,
  139.             /* [3] */ 2, 0
  140.         }
  141.     }
  142. };
  143.  
  144. data 'pdup' (0) {
  145.     ""
  146. };
  147.  
  148. resource 'FREF' (128) { 'APPL', 0, "" }; 
  149. resource 'FREF' (129) { 'fold', 1, "" }; 
  150. resource 'FREF' (130) { '****', 2, "" }; 
  151.  
  152.  
  153. /*
  154.     This is the KEY resource in supporting AEVTs - it is used by scripting/macro
  155.     systems such as Control Tower & QuicKeys in determing what events an application
  156.     supports.
  157.     
  158.     In this one, we simply tell it we support the required events, since that is all
  159.     we do.  If you add additional events, you MUST consult the AETE documentation
  160.     distributed by Apple.  Make sure you find the RELEASE NOTES, since this resource
  161.     has undergone a NUMBER of chanes.
  162. */
  163. resource 'aete' (0, "Apple Events Terminology") {
  164.  
  165.     0x00,            /* major version number in BCD */
  166.     0x90,            /* minor version number in BCD. From 7/9/91 version of AEUT docs */
  167.     english,        /* descriptions are in english */
  168.     roman,            /* use roman language script system */
  169.     
  170.     {    /* array Suites: 1 elements */
  171.     
  172.         /*******************************************************
  173.         [1] -- The part that show we do the required AppleEvents
  174.         *******************************************************/
  175.  
  176.         "Required Suite",
  177.         "Events that every application should support",
  178.         'reqd',
  179.         1,            /* suite level */
  180.         1,            /* suite version */
  181.         
  182.         {
  183.             /* array Events: 0 elements */
  184.         },
  185.         
  186.         {
  187.             /* array Classes: 0 elements */
  188.         },
  189.         
  190.         {
  191.             /* array ComparisonOps: 0 elements */
  192.         },
  193.         
  194.         {
  195.             /* array Enumerations: 0 elements */
  196.         },
  197.     }
  198. };
  199.